package com.example.siyun.controller.shouyecontroller;

import com.example.siyun.pojo.Sysinfo;
import com.example.siyun.service.impl.shouyeserviceimpl.SysinfoServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;
/**
 * @Auther: 全
 * @Date: 2022/9/26 09:33
 * @Description:首页的系统信息
 */
@Slf4j
@RestController
public class SysinfoController {
    @Autowired
    private SysinfoServiceImpl sysinfoService;
    /**
     * 获取系统的信息
     * @return 返回系统的数据
     */
    @RequestMapping("/advanced/getxinxi")
    public Map<String,Object> getKs(){
        log.info("获取系统的信息");
        Map aa=new HashMap();
        Sysinfo s=sysinfoService.findInfo();
        System.out.println(s);
        aa.put("xinxi",s);
        log.info("获取系统的信息成功");
        return aa;
    }
}
